import React, {Component} from 'react';
import RecommendStyles from './index.module.scss';
class Recommend extends Component<RecommendProps> {
    static defaultProps = {
        cover: '',
    };
    render() {
        return (
            <div className={`${RecommendStyles.recommend} ${this.props.cover ? RecommendStyles.cover : ''} `}>
                <h2 className={RecommendStyles.h2}>完整版“Intro”个性博客模版主题，附带演</h2>
                <p className={RecommendStyles.other_info}>
                    <span>2月前</span>
                    <span>浏览 501</span>
                </p>
                {this.props.cover ? (
                    <div className={RecommendStyles.img_box}>
                        <img src={this.props.cover} alt="" />
                    </div>
                ) : (
                    ''
                )}
            </div>
        );
    }
}
interface RecommendProps {
    cover?: string;
}
export default Recommend;
